import request from '@/utils/request'

// 查询列表信息
export function getBankList(query) {
  return request({
    url: '/md/bankInfo/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function bankDetail(bankId) {
  return request({
    url: '/md/bankInfo/' + bankId,
    method: 'get'
  })
}

// 新增
export function addBank(data) {
  return request({
    url: '/md/bankInfo',
    method: 'post',
    data: data
  })
}

// 修改
export function updateBank(data) {
  return request({
    url: '/md/bankInfo',
    method: 'put',
    data: data
  })
}

// 删除
export function delBank(bankId) {
  return request({
    url: '/md/bankInfo/' + bankId,
    method: 'delete'
  })
}

// 修改状态
export function changeBankStatus(data) {
  return request({
    url: '/md/bankInfo/updateStatus',
    method: 'put',
    data: data
  })
}